package com.sicau.basedemo.entity.param.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 用户添加参数
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-04-26
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "用户添加参数", description = "用户添加参数")
public class UserAddParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull
    @ApiModelProperty(value = "学工号", required = true)
    private Integer number;

    @NotBlank
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @NotBlank
    @ApiModelProperty(value = "姓名", required = true)
    private String name;

    @ApiModelProperty(value = "电话")
    private String tel;

    @NotNull
    @ApiModelProperty(value = "用户类型", required = true)
    private Integer userType;

}
